//
//  SaoMaView.m
//  Test
//
//  Created by jingyao on 2017/12/21.
//  Copyright © 2017年 jingyao. All rights reserved.
//

#import "SaoMaView.h"
#import "SaoMaViewController.h"

@interface SaoMaView ()

@end

@implementation SaoMaView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    //设置imageview可以点击
    self.discoverImgView.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(discoverAction)];
    [self.discoverImgView addGestureRecognizer:tap];
}

#pragma mark - imageview点击事件

- (void)discoverAction {
    NSLog(@"已经接收到了imageview的点击事件");
    
    //准备发送通知
    NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
    [center postNotificationName:@"turnPageNotification" object:nil];
}
@end
